package AnimalTest;

import AnimalTest.Dog;

public class Tidy extends Dog {
    public Tidy() {
    }

    public Tidy(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat(){
        System.out.println("一只叫做"+super.getName()+","+super.getAge()+"岁的泰迪在吃骨头，边吃边蹭");
    }
    @Override
    public String toString() {
        return "名字是"+getName()+",年龄为"+getAge()+"岁的泰迪";
    }
}
